package vn.edu.ptithcm.pim.service;

import vn.edu.ptithcm.pim.dom.Rank;

import java.util.List;

import vn.edu.ptithcm.pim.dao.RankDao;
@SuppressWarnings({ "rawtypes" })
public class RankService {
	private RankDao rankDao;

	public RankDao getRankDao() {
		return rankDao;
	}

	public void setRankDao(RankDao rankDao) {
		this.rankDao = rankDao;
	}

	public void save(Rank rank) {
		rankDao.save(rank);
	}

	public void saveOrUpdate(Rank rank) {
		rankDao.saveOrUpdate(rank);
	}

	public void lock(Rank rank) {
		rankDao.lock(rank);
	}

	public void delete(Rank rank) {
		rankDao.delete(rank);
	}

	public Rank merge(Rank rank) {
		return rankDao.merge(rank);
	}

	public Rank findById(java.lang.Long id) {
		return rankDao.findById(id);
	}

	public List findByExample(Rank rank) {
		return rankDao.findByExample(rank);
	}

	public List getAll() {
		return rankDao.getAll();
	}

	
}
